import http from '../../utils/request/request'

// 获取所有加工厂
export function getProcessListByBaseId() {
    return http({
        url: '/processing/processing-factory/',
        method: 'get'
    })
}

// 获取所有管理人员列表
export function getStaffListByBaseId(baseId) {
    return axiosObject.user({
        url: `/authority/user/getBaseMember/${baseId}`,
        method: 'get'
    })
}

// 获取所有的冷库信息
export function getRefrigeratoryInfo() {
    return axiosObject.storage({
        url: `/refrigeratory/RefrigeratoryInfo/get/AllRefrigeratory`,
        method: 'get'
    })
}
// 获取所有客户(个人/企业)信息
export function getCustomer(id) {
    return axiosObject.customer({
        url: `/customer/${id}`,
        method: 'get'
    })
}

// 获取所有加工厂原料信息
export function getMaterialListByProcessId(processId) {
    return axiosObject.process({
        url: `/processing/material/${processId}`,
        method: 'get'
    })
}

// 获取所有产品信息
export function getProductListByProcessId(processId) {
    return axiosObject.process({
        url: `/processingFactory/product/factoryProduct/${processId}`,
        method: 'get'
    })
}



// 获取原辅料信息数据
export function getMaterialList(data) {
    return axiosObject.originAxios({
        url: '/processing/processing-material/',
        method: 'get',
        data: data
    })
}
